#define _BSD_SOURCE
#include <arpa/inet.h>
#include <stdio.h>
#include <stdlib.h>
int
main(int argc, char *argv[])
{
           struct in_addr addr,t_addr;

           if (argc != 2) {
               fprintf(stderr, "%s <dotted-address>\n", argv[0]);
               exit(EXIT_FAILURE);
           }

	   int result = inet_aton(argv[1],&addr);
           if (result == 0) {
               fprintf(stderr,"the address is  invalid\n");
               exit(EXIT_FAILURE);
           }

           printf("%s\n", inet_ntoa(addr));
	   printf("%s\n",inet_ntoa(t_addr));
          exit(EXIT_SUCCESS);
}

